#pragma once

#include <fstream>
#include <mutex>

class DataSaver {
private:
    /// <summary>
    /// 互斥体
    /// </summary>
    static std::mutex _mutex;

public:
    /// <summary>
    /// 输出文件
    /// </summary>
    static std::ofstream out_file;

public:
    virtual ~DataSaver();

    DataSaver& operator<<(const std::string& str);
};
